package org.acsis.covoiturage.frontend.application;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.google.inject.Guice;

/**
 * Application Lifecycle Listener implementation class GuiceListner
 *
 */
public class GuiceListner implements ServletContextListener {

    public GuiceListner() {
    }

    public void contextInitialized(ServletContextEvent arg0) {
    	SVC.setInjector(Guice.createInjector(new MainModule()));
    }

    public void contextDestroyed(ServletContextEvent arg0) {
    }
	
}
